package com.ldwx.center.service;

import com.ldwx.center.dao.RecruitDao;
import com.ldwx.center.model.Recruit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecruitService {

    @Autowired
    private RecruitDao dao;

    /**
     * 查询所有招聘任务
     * @return List
     */
    public List<Recruit> findAll() {
        return dao.findAll();
    }

    /**
     * 发布招聘
     * @param recruit
     */
    public void save(Recruit recruit) {
        dao.save(recruit);
    }
}
